package com.gym.code.generator.model.mapping.field;

import com.gym.code.generator.EnumContants.FieldClassType;
import com.gym.code.generator.utils.LocalStringUtils;

/**
 * 
 * @author xinchun.wang
 * @email: 532002108@qq.com
 * @createTime 2015-4-11 上午11:56:53
 */
public class FieldGenerateModel {
	/**
	 * 成员名字
	 */
	private String propertyName;
	
	private String columnName;

	/** 类型 */
	private FieldClassType valueType;

	/** 默认值 */
	private String defaultValue;

	private String desc;

	private boolean primaryKey;

	private boolean nullAble;
	
	
	public String getPropertyName() {
		return propertyName;
	}

	public String getPropertyNameByFirstLetterUpper() {
		return LocalStringUtils.toFirstLetterUpper(propertyName);
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public FieldClassType getValueType() {
		return valueType;
	}

	public void setValueType(FieldClassType valueType) {
		this.valueType = valueType;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public boolean isPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(boolean primaryKey) {
		this.primaryKey = primaryKey;
	}

	public boolean isNullAble() {
		return nullAble;
	}

	public void setNullAble(boolean nullAble) {
		this.nullAble = nullAble;
	}
	
	
	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

}
